<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2020/2/5
 * Time: 22:05
 */

namespace app\api\controller;


use app\api\Base2Controller;

class Fuxieyi extends Base2Controller
{
    /**
     * 协议
     */
    public function xieyi()
    {
//   关于我们(fuaboutas) 隐私协议(fuyinsi) 用户协议(fuyonghu)
        $code = input('code')?input('code'):'fuaboutas';
        $model = model('document');
        $result = $model->getOneDocumentByCode($code);
        $result['document_content'] = htmlspecialchars_decode($result['document_content']);
        $result['document_time'] = date('Y-m-d H:i:s',$result['document_time']);
        return json_success_return($result);
    }
}